-- GENERATED SPELL FOR [Dread Guard] --


function spell0_14483(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14483', 578, 1)
end

function spell1_14483(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(18663,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14483', 550, 1)
end

function Sorts_14483(pUnit, Event)
local choix_sorts_14483 = math.random(0, 1)
if choix_sorts_14483 == 0 then
pUnit:RegisterEvent('spell0_14483', 1, 1)
end
if choix_sorts_14483 == 1 then
pUnit:RegisterEvent('spell1_14483', 1, 1)
end
end

function mob14483_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14483', math.random(1500, 3000), 1)
end

function mob14483_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14483_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14483_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14483, 1, 'mob14483_Action')
RegisterUnitEvent(14483, 2, 'mob14483_Leave')
RegisterUnitEvent(14483, 3, 'mob14483_Kill')
RegisterUnitEvent(14483, 4, 'mob14483_Die')
